home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / wild / appunti / format_wabl.txt < prev    next >
Text File  |  1999-01-01  |  2KB  |  68 lines

  1.  
  2. That's the first format i'll implement, and will be much like the META format.
  3. The important thing is that is FAST and EXPANDIBLE.
  4.  
  5. Needed: Parent/Child features.
  6.  
  7. Format specs:
  8. Very simple:
  9.  
  10. Everything is based on "command lines":
  11.  
  12. !?command/[args]
  13.  
  14. !    :is the line starter. My routine looks for this, not for $a
  15. ?     :stands for control char. (determinates the type of line)
  16. command :stands for the type of command defined.
  17. /    :terminates the command. NO SPACES BETWEEN THE COMMAND AND THIS !!
  18.     (a #Root/ and a #Root / and a # Root/ and a # Root / are ALL DIFFERENT
  19.     THINGS !!)
  20. [args]     :the value of the command. If no value is needed, [] MUST BE USED!! 
  21.     (my lineinput routine LOOKS FOR THEM !!)
  22. args     :NO MULTIPLE ARGS ARE ACCEPTED!! Please, i wait this format to be simple.
  23.     So, if you have to specify a position, I want 3 lines (x,y,z) to be used, 
  24.     not a complex Position line with 3 args. That's to make things easy.
  25.     This format must be simple, not fast.
  26.  
  27. NB: Binary are not allowed: if you have to include something from out, use a command.
  28.  
  29. !#Root/[]
  30. !#Level/[GoingNowhere]
  31. !$Desc/[
  32. Hello boyz!
  33. Nice level, eh?
  34. ]
  35. !-Level/[]
  36. !-Root/[]
  37.  
  38. NB2: Multiple lines are allowed: the lineinput stops on ], not on $A.
  39.  
  40. If you want to insert comments, use a * line:
  41.  
  42. !*/[my opinion is that this is a bad thing because of the lack of foxxy]
  43.  
  44. This line will be ignored by the parser, but the lineinput always wants the / and [].
  45.  
  46. NB3: You can specify an object in multiple parts:
  47.  
  48. !#Root/[]
  49. !#Level/[GoingNowhere]
  50. !$Desc/[
  51. Hello boyz!
  52. Nice level, eh?
  53. ]
  54. !-Level/[]
  55. !#SomeTrash/[!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!]
  56. !-SomeTrash/[]
  57. !#Level/[GoingNowhere]
  58. !$Author/[That's me!]
  59. !-Level/[]
  60. !-Root/[]
  61.  
  62. Here, the Level GoingNowhere is split in 2 parts, but the loader will give you
  63. a single structure.
  64.  
  65. When loaded, you will receive from the loader the pointer to a struct containing
  66. some useful info and the root node.
  67.  
  68.